package trading.ctm.yunjing.module.message.activity

import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import cc.vv.baselibrary.activity.BaseActivity
import cc.vv.baselibrary.view.BaseTopBarView
import kotlinx.android.synthetic.main.activity_message_auction.*
import trading.ctm.yunjing.R
import trading.ctm.yunjing.module.message.adapter.MessageAuctionAdapter

/**
 * @desc 消息
 * @author zouxiaorui
 * @date  2018/8/8
 */
class MessageActivity : BaseActivity(){

    override fun initLayoutRes(): Int {
        return R.layout.activity_message_auction
    }

    override fun initView(bundle: Bundle?) {
        super.initView(bundle)

        rv_ama_auction_list.layoutManager = LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false)
    }

    override fun initAction(data: Bundle?) {
        super.initAction(data)

        btbv_ama_auction_title.setEventInterface(object : BaseTopBarView.EventInterface{
            override fun leftOnClick() {
                finish()
            }

            override fun leftCloseClick() {
            }

            override fun rightOnClick() {
            }

        })

        val data = listOf("dddddddd", "ssssssssssss","ooooooooooooooooo", "ooooooooooooooooo", "ooooooooooooooooo")
        rv_ama_auction_list.adapter = MessageAuctionAdapter(R.layout.adapter_message_auction, data)
    }

}